import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/Home'
import biji from './biji'
import sing from './sing'
import jushi from './jushi'
import dao from './dao'
import study from './study'
import ziyuan from './ziyuan'
import edit from '@/views/edit'

Vue.use(Router)

export default new Router({
    mode: 'history',
    routes : [
        {
            path: '*', 
            redirect: '/'
        },
        {
            path : '/',
            redirect: '/study',
            name : 'home',
            component : Home
        },
        {
            path : '',
            redirect: '/study',
            component : Home
        },
        
        {
            path : '/edit',
            name : 'edit',
            component : edit
        },
        biji,
        jushi,
        study,
        ziyuan,
        sing,
        dao

        
    ]
})